﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NCP.Infrastructure.Common.Domain;
using NCP.Recruiting.Domain.Aggregates.Resumes;

namespace NCP.Recruiting.Domain.Aggregates.Candidates
{
    public interface ICandidateRepository : IRepository<Candidate>
    {
        IQueryable<Candidate> SearchCandidates(Guid companyId, int status, string keyWord);

        int GetUnreadCount(Guid companyId,  string keyWord);

        void DeleteByIds(List<Guid> deleteIds);

        void RecoverByIds(List<Guid> recoverIds);

        void UpdateItem(Guid id, Action<Candidate> updateFiled);
    }
}
